import request from '@/utils/request'
import { subUrl } from '@/api/dev'
const tempUrl = `${subUrl}/alarm`

export function getAll(data) {
  return request({
    url: `${tempUrl}/getAll`,
    method: 'post',
    data,
  })
}
//项目下的故障统计数据
export function getAllByCostNumber(data) {
  return request({
    url: `${tempUrl}/getAllByCostNumber`,
    method: 'post',
    data,
  })
}
//项目总览数据
export function getTotalDataByCostNumber(data) {
  return request({
    url: `${tempUrl}/getTotalDataByCostNumber`,
    method: 'post',
    data,
  })
}
export function getAllByDevice(data) {
  return request({
    url: `${tempUrl}/getAllByDevice`,
    method: 'post',
    data,
  })
}
export const uploadExcleUrl = `${tempUrl}/uploadExcle`
